package vitamin.demo.fileLoader;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import vitamin.demo.utils.ResultUtils;


@RestController
@Api(tags = "文件上传下载接口")
public class FileLoaderController {

    @Autowired
    FileLoaderService service;

    // 上传文件
    @PostMapping("/fileUpload")
    @ApiOperation("上传文件")
    public String fileUpload(){
        return ResultUtils.permissionDenied();
    }

    // 下载文件
    @PostMapping("/fileDownload")
    @ApiOperation("下载文件")
    public String fileDownload(){
        return ResultUtils.permissionDenied();
    }

}
